
* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

body {
    // padding: 4px 4px 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    flex-grow: 0;
    width: 100%;
    font-size: 12px;
    height: 22px;
    line-height: 22px;
    color: #555;
    display: flex;
    justify-content: left;
    align-items: center;
    background-color: #f7f7f7;
    user-select: none;
    
    ul {
        width: 100%;

        & > li {
            margin: 0 5px;
        }

        li#docType {
            
            position: relative;

            span.disabled {
                cursor: not-allowed;
                color: #aaa;
            }

            ul {
                position: absolute;
                bottom: 19px;
                right: -5px;
                z-index: 998;
                background-color: #efefef;
                width: 220px;
                overflow: hidden;
                display: none;
                opacity: 0;

                li {
                    // width: 100%;
                    height: 24px;
                    line-height: 24px;
                    margin: 0;
                    padding: 0 10px;

                    &:hover {
                        background-color: #fff;
                    }
                }
            }
        }

        #saveFile, #createFile {
            font-size: 13px;
        }

        #saveFile {
            span.disabled {
                cursor: not-allowed;
                color: #aaa;
            }
        }

        #inputBox {
            position: absolute;
            bottom: 24px;
            right: 2px;
            outline: none;
            padding: 5px 10px;
            width: 50vw;
            background-color: #fff;
            border-radius: 3px;
            border: 1px solid #efefef;
            display: none;
            margin: 1px;
            opacity: 0;
            font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;
            z-index: 200;
        }

        input#inputBox.invalid {
            border: 1px solid red;
        }

        
        input#inputBox.invalid::-webkit-input-placeholder{
            color:red;
        }
        input#inputBox.invalid::-moz-placeholder{   /* Mozilla Firefox 19+ */
            color:red;
        }
        input#inputBox.invalid:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
            color:red;
        }
        input#inputBox.invalid:-ms-input-placeholder{  /* Internet Explorer 10-11 */ 
            color:red;
        }

        #vimCommand {
            box-sizing: border-box;
            font-size: 12px;
            height: 18px;
            line-height: 18px;
            width: 15%;
            border-radius: 4px;
            padding: 0 8px;
            margin: 2px 0;
            color: #fff;
        }

        #vimCommand.active {
            background-color: #282a36;
        }

        #vimStatus {
            width: 60px;
            text-align: center;
        }
    }   
}

main {
    flex-grow: 1;
    width: 100%;
    height: 100%- 20px;
    font-size: 16px;
    display: flex;
    position: relative;

    .CodeMirror {
        flex-grow: 0;
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        font-size: 16px;
    }

    #splitter {
        width: 3px;
        height: 100%;
        background-color: #efefef;
        cursor: col-resize;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        opacity: 0;
    }
    
    #mdPreview {
        flex-grow: 0;
        flex-shrink: 0;
        width: 50%;
        height: 100%;
        font-size: 16px;
        box-sizing: border-box;
        padding: 0 10px;

        &::-webkit-scrollbar { 
            width: 0 !important;
            height: 0 !important;
        }

        -ms-overflow-style: none;
        overflow: -moz-scrollbars-none;
        overflow: scroll;
    }
}

textarea {
    opacity: 0;
}